﻿using BCDto.TMS.Agent.AgentCurrentlyProtocolAttachment;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCDto.TMS.Agent.AgentCurrentlyProtocol
{
    /// <summary>
    /// 代理商现行协议
    /// </summary>
    public class AgentCurrentlyProtocolRequestDto
    {
        /// <summary>
        /// 协议类型
        /// </summary>
        [Display(Name = "协议类型")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public string ProtocolType { get; set; }

        /// <summary>
        /// 协议内容
        /// </summary>
        [Display(Name = "协议内容")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public string ProtocolContent { get; set; }

        /// <summary>
        /// 签署日期
        /// </summary>
        [Display(Name = "签署日期")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public DateTime SignDate { get; set; }

        /// <summary>
        /// 代理商现行协议附件
        /// </summary>
        [Display(Name = "代理商现行协议附件")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public List<AgentCurrentlyProtocolAttachmentRequestDto> AgentCurrentlyProtocolAttachments { get; set; }
    }
}
